﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StackOverflow.Model
{
    public class UserInfo
    {
        [Key]
        public int UserInfoID { get; set; }

        [MaxLength(32)]
        [Required]
        public string Email { get; set; }

        [MaxLength(32)]
        [Required]
        public string Password { get; set; }

        public string Address { get; set; }

        public string Bio { get; set; }

        public string Introduction { get; set; }

        public DateTime Birthday { get; set; }

        public string RealName { get; set; }

        public string LastLoginIPV4 { get; set; }

        public DateTime LastLoginTime { get; set; }

        public DateTime CreatedTime { get; set; }

    }
}
